<?php
/* @var $this ContentController */
/* @var $model Content */

$this->breadcrumbs=array(
	'Страницы'=>array('admin'),
	'Управления',
);

$this->menu=array(
	array('label'=>'Создать страницу', 'url'=>array('create')),
);

?>

<h1>Управления страницами</h1>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'content-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'name',
		array(
			'name' => 'category_id',
			'value'=>'CSelect::item($data->category_id, "CategoryContent")',
			'filter'=>CSelect::items('CategoryContent'),
		),
		array(
			'name' => 'type_id',
			'value'=>'CSelect::item($data->type_id, "ContentType")',
			'filter'=>CSelect::items('ContentType'),
		),
		array(
			'class'=>'EButtonColumnWithClearFilters',
			'template'=>'{update}{delete}',
			'buttons'=>array(
				'update' => array(
					'imageUrl'=>'/css/admin/images/update.png',
				),
				'delete' => array(
					'imageUrl'=>'/css/admin/images/delete.png',
				),
			)
		),
	),
)); ?>
